CC = iccavr
LIB = ilibw
CFLAGS =  -D__ICC_VERSION=722 -DATMega8  -l -g -Wa-g -MHasMul -MEnhanced -Wa-W 
ASFLAGS = $(CFLAGS)  -Wa-g
LFLAGS =  -g -e:0x2000 -Wl-W -bfunc_lit:0x26.0x2000 -dram_end:0x45f -bdata:0x60.0x45f -dhwstk_size:16 -beeprom:0.512 -fihx_coff -S2
FILES = delay.o lock_m1606d.o cmd_queue.o 

LOCK_M1606D:	$(FILES)
	$(CC) -o LOCK_M1606D $(LFLAGS) @LOCK_M1606D.lk   -lstudio
delay.o: .\delay.h
delay.o:	delay.c
	$(CC) -c $(CFLAGS) delay.c
lock_m1606d.o: D:\iccv7avr\include\iom16v.h D:\iccv7avr\include\macros.h D:\iccv7avr\include\AVRdef.h .\delay.h .\cmd_queue.h D:\iccv7avr\include\stdio.h D:\iccv7avr\include\stdarg.h D:\iccv7avr\include\_const.h D:\iccv7avr\include\stdlib.h D:\iccv7avr\include\limits.h D:\iccv7avr\include\string.h
lock_m1606d.o:	lock_m1606d.c
	$(CC) -c $(CFLAGS) lock_m1606d.c
cmd_queue.o: .\cmd_queue.h D:\iccv7avr\include\iom16v.h D:\iccv7avr\include\macros.h D:\iccv7avr\include\AVRdef.h .\delay.h D:\iccv7avr\include\stdio.h D:\iccv7avr\include\stdarg.h D:\iccv7avr\include\_const.h D:\iccv7avr\include\stdlib.h D:\iccv7avr\include\limits.h D:\iccv7avr\include\string.h
cmd_queue.o:	cmd_queue.c
	$(CC) -c $(CFLAGS) cmd_queue.c
